package net.lanelife.casino.caipiao.entity.statistics.support;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

import net.lanelife.casino.caipiao.entity.User;

import org.hibernate.annotations.Type;
import org.joda.time.LocalDate;

@MappedSuperclass
public abstract class BaseUserDailyStatistics<PK extends Serializable> extends BaseUserStatistics<PK> {

	private static final long serialVersionUID = 5408021742975087652L;

	// ================================= 报表日期 =================================
	
	@Column(name = "REPORT_DATE", nullable = false)
	@Type(type = "org.jadira.usertype.dateandtime.joda.PersistentLocalDate")
	protected LocalDate reportDate;
	
	public BaseUserDailyStatistics() {}
	
	public BaseUserDailyStatistics(User user, LocalDate reportDate) {
		super(user);
		this.reportDate = reportDate;
	}
	
}
